import request from '@/utils/request'

// 查询空投信息列表
export function getMessageList(query) {
    return request({
        url: '/customer/message/list',
        method: 'get',
        params: query
    })
}
// 获取用户消息通知
export function getMessageId(id) {
    return request({
        url: `/customer/message/${id}`,
        method: 'get'
    })
}
// 导入消息用户
// export function customerImport(query) {
//     return request({
//         url: '/customer/message/customer/import',
//         method: 'post',
//         params: query
//     })
// }
// 获取用户消息通知
export function getCustomerPhone(phone) {
    return request({
        url: `/customer/message/customer/${phone}`,
        method: 'get'
    })
}
// 新增用户消息通知
export function addCustomerMessage(data) {
    return request({
        url: '/customer/message',
        method: 'post',
        data
    })
}
// 修改用户消息通知
export function editCustomerMessage(data) {
    return request({
        url: '/customer/message',
        method: 'put',
        data
    })
}
// 权益库存选择列表
export function inventorySelectList() {
    return request({
        url: '/equity/inventory/select/list',
        method: 'get'
    })
}
//2023-5-18
// 查询通用权益库存下拉框
export function currentInventorySelect(query) {
    return request({
        url: `/common/v1/equity/inventory/select`,
        method: 'get',
        params:query
    })
  }